package org.example.innovate.vo;

import lombok.Data;
import org.example.innovate.domain.User;

@Data
public class UserVo extends User {
    String token;
    int followCount;
    int followerCount;
    int myPostCount;
    int myPostViewCount;
    int myCollectionCount;
    int MessageCount;
    public void setUser(User user){
        this.setVcode(user.getVcode());
        this.setUsername(user.getUsername());
        this.setPassword(user.getPassword());
        this.setCreatedAt(user.getCreatedAt());
        this.setUpdatedAt(user.getUpdatedAt());
        this.setPhone(user.getPhone());
        this.setPreference(user.getPreference());
        this.setProfilePicture(user.getProfilePicture());
        this.setUserId(user.getUserId());
        this.setBio(user.getBio());
    }
}
